package com.example.demo.test1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.test1.entity.Test1;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ITest1Mapper extends BaseMapper<Test1> {

    @Select("select * from test1")
    List<Test1> getList(Page<Test1> page);

    List<Test1> getByIds(@Param("ids") Integer[] ids);
}
